package br.com.lh.urabuilder.domain.xml
{
	import mx.collections.ArrayCollection;
	import mx.validators.StringValidator;
	import mx.validators.Validator;
	
	[Bindable]
	public class UraActionField
	{
		public var value:Object;
		public var validator:Validator;
		public var possibleValues:ArrayCollection;
		public var unlimitted:Boolean = false;
		
		
		public function UraActionField(validator:Validator,
		value:Object = null,possibleValues:ArrayCollection =null){
			this.value = value;
			this.possibleValues = possibleValues;
			this.validator = validator;
			if (validator is StringValidator && StringValidator(validator).maxLength == Number.MAX_VALUE){
				unlimitted = true;
			}
		}
		
		
		

	}
}